package dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnexionMySQL 
{

	static String piloteOracle = "org.gjt.mm.mysql.Driver";
	static String chaine = "jdbc:mysql://localhost/";
	
	public static java.sql.Connection getConnection (java.lang.String base, java.lang.String util, java.lang.String mdp) throws ClassNotFoundException, SQLException
	{
		Connection cnx;
		Class.forName(piloteOracle);
		cnx = DriverManager.getConnection(chaine + "mlr1","root","");
		return cnx;
	}
}
